{% extends 'base.html' %}
{% load pp_url %}
{% load logintags %}

{% block title %}Register Page{% endblock %}
{% block css %}

{% block browser_bar %} 

{% endblock %}

{% block user_register_login %}

{% endblock %}

{% endblock %}

{% block content%}

<div class="stage">
<div class="register_title">
<h2>Welcome to OpenAssembly: Alpha</h2>
</div>
<div class="register_title2">
an evolution in deliberation
</div>
	<div class = "register">
    <div class="register_registration">
    <h3> Register a new account!</h3>
	<form method="post" action="">
{% pp_user_registration_form returnurl=request.returnurl request=request %}
            Username:<br>
            {{ pp_login.form.name }}<br>
            Password:<br>
            {{ pp_login.form.password1 }}<br>
            Check Password:<br>
            {{ pp_login.form.password2 }}<br>
            Email:<br>
            {{ pp_login.form.email }}<br><br>
			{{ pp_login.form.form_id}}
			{% csrf_token %}
		  <input type="submit" class="button green" value="Register">
        <div class="error">{{pp_login.errors}}<br>{{ pp_login.form.errors }}</div>
		</form>
{% endpp_user_registration_form %}
    </div>
    <div class="register_login">
    <h3> Login to existing account!</h3>
        {% pp_user_login_form request=request returnurl=request.returnurl %}
            <form method="post" action="">
                    Username: 
                        <br> {{ pp_login.form.name }}<br>
                    Password:<br> {{ pp_login.form.password }}<br><br>
                    {{ pp_login.form.form_id}}
                    {% csrf_token %}
                  <input type="submit" class="button green" value="Login">
                <div class="error">{{pp_login.errors}}<br>{{ pp_login.form.errors }}</div>
                </form>
        {% endpp_user_login_form %}
    </div>

    </div>
    
</div>

{% endblock content %}

